package com.khyr.feign;

import com.khyr.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @InterfaceName: Medicines
 * @author: Zyl
 * @date: 2025/3/17 11:35
 * @Version: 1.0
 * @description:
 */

@FeignClient(value = "services-drug", fallbackFactory = MedicinesFallbackFactory.class)
public interface MedicinesFeign {
    @PostMapping("/erp/medicines/reduce")
    public R reduce(@RequestParam String medicinesName,@RequestParam Integer medicinesStockNum);
    @PostMapping("/erp/medicines/add")
    public R add(@RequestParam Long medicinesId,@RequestParam Integer medicinesStockNum);
}
